#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@author: bingweichen
@contact: bingwei.chen11@gmail.com
@File    : __init__.py
@Time    : 2020/9/18 7:52 PM
@Site    : 
@Software: IntelliJ IDEA
@desc: 
"""
import os

from app import create_app

config_name = os.getenv('FLASK_ENV') or 'default'
app = create_app(config_name)

#
# if __name__ == '__main__':
#     from flask import json
#     from app import api
#     # app = create_app('default')
#     # with app.app_context():
#     print(json.dumps(api.__schema__))
